package com.homework.api_user.client;

import com.homework.util.ResultMsg;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name="api-code")
public interface CodeFeignClient {
    @RequestMapping("/api/code/validate/{email}/{code}")
    public ResultMsg validate(@PathVariable("email") String email, @PathVariable("code") String code);
}
